package mutsumimod.monitors;

import basemod.ReflectionHacks;
import basemod.interfaces.OnPlayerTurnStartSubscriber;
import basemod.interfaces.OnStartBattleSubscriber;
import basemod.interfaces.PostBattleSubscriber;
import basemod.interfaces.PostUpdateSubscriber;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.Settings;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.rooms.AbstractRoom;
import mutsumimod.cards.custom.Forget;
import mutsumimod.patches.CopyPatch;

public class ForgetMonitor extends BaseMonitor implements OnStartBattleSubscriber, OnPlayerTurnStartSubscriber, PostBattleSubscriber {

    public static int damageTakenLastTurn=0;
    public static int damageTakenThisTurn=0;

    @Override
    public void receiveOnBattleStart(AbstractRoom abstractRoom) {
        damageTakenLastTurn=0;
        damageTakenThisTurn=0;
    }

    @Override
    public void receiveOnPlayerTurnStart() {
        damageTakenLastTurn=damageTakenThisTurn;
        damageTakenThisTurn=0;
    }


    public static void addDamageThisTurn(int amount) {
        damageTakenThisTurn+=amount;
    }

    @Override
    public void receivePostBattle(AbstractRoom abstractRoom) {
        receiveOnBattleStart(abstractRoom);
    }
}
